const app = require('electron');

export const appMenuTemplate = [
    {
        label: 'File',
        submenu: [],
    }, {
        label: 'Edit',
        submenu: [
            { role: 'undo' },
            { role: 'redo' },
            { type: 'separator' },
            { role: 'cut' },
            { role: 'copy' },
            { role: 'paste' },
            { role: 'pasteandmatchstyle' },
            { role: 'delete' },
            { role: 'selectall' },
        ],
    }, {
        label: 'View',
        submenu: [
            { role: 'reload' },
            { role: 'forcereload' },
            { role: 'toggledevtools' },
            { type: 'separator' },
            { role: 'resetzoom' },
            { role: 'zoomin' },
            { role: 'zoomout' },
            { type: 'separator' },
            { role: 'togglefullscreen' },
        ],
    }, {
        role: 'help',
        submenu: [
            {
                label: 'Home Page',
                click() {
                    app.shell.openExternal('https://www.jianshu.com/p/57d910008612');
                },
            },
        ],
    },
];
